﻿<%@ Page Language="VB" MasterPageFile="~/WebForm/MasterPage.master" ValidateRequest="false"  AutoEventWireup="false" CodeFile="ImportData.aspx.vb" Inherits="WebForm_ImportData" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <table align="center" width="95%">
     <tr>
        <td align="center">
            <asp:Label ID="Title" runat="server" SkinID="title" meta:resourcekey="Page"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="left">
            <fieldset align="left">
                <legend>
                    <asp:Label ID="lblUploadData" runat="server" meta:resourcekey="lblUploadData"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblUploadFile" runat="server" meta:resourcekey="lblUploadFile"></asp:Label>
                        </td>
                        <td>
                            <asp:FileUpload ID="FileUpload1" runat="server" />
                            <asp:Button ID="btnImport" CssClass="button" SkinID="button" runat="server" meta:resourcekey="btnImport" />
                            <asp:HyperLink ID="hlinkExample" Font-Size="12px" meta:resourcekey="hlinkExample" NavigateUrl="~/Download/ImportExample.xls" runat="server"></asp:HyperLink>
                            <asp:Label ID="lblDescription" ForeColor="red" runat="server" meta:resourcekey="lblDescription"></asp:Label>
                        </td>
                    </tr>
                    <div runat="server" id="divMatch">
                    <tr>
                        <td align="left">
                            <asp:Label ID="lblColMatch" runat="server" meta:resourcekey="lblColMatch"></asp:Label>
                        </td>
                        <td>
                            <My:MyGridView ID="gvMatch" runat="server" SkinID="pager" AllowHoverSelect="false" meta:resourcekey="gvMatch">
                                <Columns>
                                   <asp:TemplateField HeaderText="No.">
                                       <ItemTemplate>
                                       <%#gvMatch.PageIndex * gvMatch.PageSize + gvMatch.Rows.Count + 1%>
                                       </ItemTemplate>
                                   </asp:TemplateField>
                                   <asp:BoundField DataField="ColumnName" meta:resourcekey="bfColumnName" />
                                   <asp:TemplateField meta:resourcekey="bfFileColumnName" >
                                        <ItemTemplate>
                                            <asp:DropDownList ID="ddlFileColumnName" runat="server"></asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                   </asp:TemplateField> 
                                </Columns>
                            </My:MyGridView>
                        </td>
                    </tr>
                    <tr runat="server">
                        <td align="center" colspan="2">
                            <asp:Button ID="btnSent" CssClass="button" SkinID="button" runat="server" meta:resourcekey="btnSent" />
                        </td>
                    </tr>
                    </div>
                </table>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td align="left">
            <fieldset align="left">
                <legend>
                    <asp:Label ID="lblGetData" runat="server" meta:resourcekey="lblGetData"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td align="center">
                           <My:MyGridView ID="gv" Width="650px" DataKeyNames="ID" runat="server" SkinID="pager" AllowHoverSelect="false" meta:resourcekey="gv" >
                                <Columns>
                                   <asp:BoundField DataField="ProductName" meta:resourcekey="bfProductName" />
                                   <asp:BoundField DataField="Month" meta:resourcekey="bfMonth" />
                                   <asp:BoundField DataField="ForeCastCount" meta:resourcekey="bfForeCastCount" /> 
                                </Columns>
                            </My:MyGridView>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
    </table>
</asp:Content>
